package com.zlx.dao;

import com.zlx.entities.User;

/**
 * @Author 周罗校
 * @Description 微信登陆业务
 * @ClassName WeChatService
 * @date 2020.09.27 17:40:43
 * 该版权归周罗校所有，最终解释权以官方为准
 */
public class WeChatService {
    private UserDao userDao = new UserDao();
    /**
     * @Author 周罗校
     * @Description 根据wxOpenid查看微信用户是否存在
     * @Param [wxOpenid]
     * @return com.zlx.entities.User
     * @Date 2020.09.27 17:49:42
     **/
    public User queryUserByUserName(String wxOpenid){
        return userDao.queryUserByUserName(wxOpenid);
    }
    /**
     * @Author 周罗校
     * @Description 插入微信用户
     * @Param [user]
     * @return void
     * @Date 2020.09.27 17:50:22
     **/
    public void insertWeChatUser(User user){
        userDao.insertWeChatUser(user);
    }
}
